package d4_implementation;

public class KeyBoard {
    private String name;
    @Override
    public void connect(){
        System.out.println(name + "键盘成功的接入设备~~");
    }
    public void keyDown(){
        System.out.println(name + "输入：键盘按下 老铁 666~~");
    }

    public KeyBoard(String name){
        this.name = name;
    }

    public String getName(){
        return name;
    }

    public void setName(String name){
        this.name = name;
    }
}
